home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / pdl31.zip / PDL.DOC next >
Text File  |  1991-10-13  |  21KB  |  532 lines

  1.         Prodigy DownLoad (PDL, pronounced "piddle")
  2.           Copyright 1990-1991 by FlexSoft
  3.  
  4.                 INTRODUCTION
  5.              ------------------
  6.  
  7. Timely access to current market information is a crucial requirement for
  8. the successful technical investor.  This valuable information is
  9. available from many sources and is accompanied by an equal number of
  10. access fees and connect charges.  One of the most reliable and
  11. economical sources of this data, although often overlooked, is the
  12. Prodigy(R) service, a joint venture of IBM(R) and Sears(R).
  13.  
  14. Initially, Prodigy made market information available to subscribers as
  15. graphics screen data only and provided no facility to the user for
  16. recording or capturing the information.  In time though, this facility
  17. was improved to include a print function.  This allowed recording of
  18. data but was not a practical method for collecting large amounts of data
  19. and was only moderately useful in maintaining historical stock market
  20. data files.  Since then Prodigy has added the ability to save quote data
  21. to a file but this method is still very time consuming for collecting
  22. large amounts of data.
  23.  
  24. As the Prodigy service began to stabilize the data formats, some users
  25. began to adopt methods of electronic data collection by employing print
  26. capture programs such as LPTx701, available on a variety of bulletin
  27. boards and services.  Further enhancements added automated keyboard
  28. macros to assist in requesting the quote information.  These programs
  29. began to bring the value of the Prodigy service as a daily stock quote
  30. update service into focus.
  31.  
  32. The obvious next step was to further automate and refine the process to
  33. make data collection as painless as possible.  PDL or "piddle" as it is
  34. referred to by the authors, is that next step.
  35.  
  36. Although the general purpose programs for keyboard simulation and
  37. print file capture are still viable alternatives, PDL was designed
  38. specifically for the purpose of downloading and recording stock, bond,
  39. mutual fund and market indicator information from the Prodigy service.
  40. The techniques employed in the PDL software take full advantage of the
  41. DOS platform and focus on collecting the market data that you need.  The
  42. limitations placed on the number of quotes that can be retrieved in one
  43. session (up to 1000) far exceeds the practical limits of other methods.
  44.  
  45. Another advantage of PDL is the ability to use different quote request
  46. files for each session without having to make changes to your QUOTE
  47. TRACK lists.  This provides access to a limitless number of quotes by
  48. combining the stock symbols of your choice in one of an infinite number
  49. of quote lists.  Users of TAS, a technical analysis program which is
  50. growing in popularity, will find it easy to generate "TAS scripts" to
  51. automatically generate "ticker" lists.  These lists can be generated to
  52. be used as direct input to the PDL program.
  53.  
  54. Perhaps the most important point of all is that the authors themselves
  55. uses PDL daily to maintain databases in excess of 500 symbols.    What
  56. this means to the user is that changes in the Prodigy service that
  57. require programming changes will get immediate attention and these
  58. changes will be made available to licensed customers of PDL as quickly
  59. as the code can be developed and tested.  Also, as the authors add
  60. enhancements for their own use, these enhancements too will become part
  61. of the product.
  62.  
  63. WHAT DOES IT DO?
  64. ----------------
  65.  
  66. The basic function of PDL is to download stock, bond, mutual fund and
  67. market index data.  It gets this data from the Prodigy service's QUOTE
  68. CHECK function using a user generated quote request file (often referred
  69. to as the PDL.IN file) and places the ASCII formatted text in a user
  70. defined output file (referred to as the PDL.OUT file).    Currently, PDL
  71. will accept requests for specific "ticker" symbols from the STOCK, BOND
  72. and FUND screens of QUOTE CHECK.  The setup procedures and a sample file
  73. are included later in this document.
  74.  
  75. A second feature of PDL is the ability to collect the information from
  76. the MARKET CLOSE function of Prodigy.  The screens that are captured
  77. provide direct access to a large number of indicators and indirect
  78. access to some additional derrived indicators.    An example of a directly
  79. accessed indicator is the DJ-30, the closing price of the Dow Jones
  80. Industrial Average.  A derrived indicator might be the cumulative
  81. difference of the new highs minus the new lows.  The PDL user can access
  82. the direct indicators using editors, spreadsheets or various other
  83. software products.  The derrived indicators require the use of PML since
  84. they are calculated from the direct information.  One of the
  85. shortcomings of the Prodigy indicators is that only the close values for
  86. the indicators are recorded.  If you absolutely need high & low values
  87. for the DJ-30, NYSE etc., you will have to collect the individual stock
  88. data and calculate it yourself.
  89.  
  90.  
  91. SUPPORT
  92. ------------
  93.  
  94. PDL was written as a companion program to Prodigy Metastock Load (PML)
  95. which is designed to load and update Metastock Professional data files
  96. from a variety of sources using a variety of input formats.  Although
  97. PML is a companion program, it is not required to get full use of PDL
  98. but rather uses the PDL output as an update source. PDL ASCII formatted
  99. files are recorded in a format that is usable by most spreadsheet and
  100. database programs that employ format descriptors.  Of course the data
  101. can also be accessed and edited using a standard ASCII text editor such
  102. as EDLIN.
  103.  
  104. Each of these programs (PDL & PML) requires registration to receive
  105. full technical support although users are encouraged to redistribute
  106. copies of the entire package for demonstration purposes.  Both
  107. programs are distributed and run in a trial, or limited demonstration
  108. mode.    PDL provides a limited use (20 quotes per session) demo. 
  109. During the trial period, the authors will attempt to answer questions
  110. about software install and configuration.
  111.  
  112. As a registered user, you will be have access to enhancements to the
  113. products as they become available and also be entitled to any available
  114. technical fixes to the version for which you are licensed.  This
  115. includes changes required to accommodate new formats in the Prodigy
  116. service data, and assumes that the required data is still available.
  117.  
  118. You can register any FlexSoft Product(s) online by calling the
  119. FlexSoft BBS at 510-829-2293 and answering Questionaire #3
  120. (VISA/MasterCard Only) In addition, you can send your name, address,
  121. VISA/Mastercard # and expiration date to JBMD65A to register PDL
  122. immediately. 
  123.  
  124. If you wish to register by check, print the the REGISTER.DOC file, fill it
  125. out, and send it to the address given on the form. 
  126.  
  127.  
  128.    Problems can be reported:
  129.        on Prodigy ID   - CBGB69A    Rick Woodcock
  130.  
  131.               HOW TO USE PDL
  132.               -----------------------
  133.  
  134.  
  135. PREPARING YOUR QUOTE LIST
  136. ----------------------------
  137.  
  138. PDL requires the use of a standard text editor and a few minutes of your
  139. time to set up the list of symbols that you wish to download.  This list
  140. is stored in a file referred to as the PDL.IN file.  The actual name of
  141. the file can be any legal DOS filename, but the default name is PDL.IN.
  142. The list contains one line for each Stock, Fund or Bond quote that you
  143. want to download.  Each line contains an indicator specifying the "type"
  144. of quote (Stock, Bond, Fund or indeX) and the symbol.  The "type"
  145. indicator is defined as:
  146.  
  147.        "S"     - stock symbol
  148.        "F"     - fund symbol
  149.        "B"     - bond symbol
  150.        "X"     - market close page or special indicator
  151.  
  152. For example, to get a quote for Apple Computer (AAPL), a stock, you
  153. would type in the line:
  154.  
  155.        S AAPL
  156.  
  157. And for JANUS FUND (JANSX), a fund, you would type in:
  158.  
  159.        F JANSX
  160.  
  161. Similarly, for a bond, you would precede the symbol with a "B".
  162.  
  163. To get the Market Close page containing the AMEX closing information you
  164. would type in:
  165.  
  166.        X AMEX
  167.  
  168.  
  169. The available Market Close page names are:
  170.   X AMEX    American Exchange Summary
  171.   X NYSE    New Your Exchange Summary
  172.   X US        US Stocks Summary
  173.   X KEY     Key Rates and Bonds
  174.   X NASDA    NASDAQ Closing Summary
  175.   X CLOSI    Closing Futures Prices
  176.   X FOREI    Foreign Exchange Currencies
  177.  
  178. Normally you will want to include all of these in your quote list.
  179.  
  180. Switching between "B", "S" and "F" types cause mode switches within
  181. Prodigy that take time.  You can obtain the best performance by
  182. grouping all symbols of each type together so that all stocks are
  183. requested sequentially, followed by all fund requests, followed by
  184. all bond requests.  PDL will not get confused if you mix up the types
  185. but the time that it takes to download can be greatly extended.
  186.  
  187.  
  188.  
  189. X QRQ30 Symbol
  190. --------------
  191.  
  192. QRQ30 is a special symbol that allows a fast download of 30 stock
  193. symbols using the Quote Track lists.  To use this symbol you must first
  194. set up the quote requests in Quote Track list #1 and #2.  Next you
  195. should add the symbol X QRQ30 to your PDL.IN file.  Although placement
  196. is not critical the X QRQ30 symbol should be the first X symbol
  197. specified for best program efficiency. One excellent use of this feature
  198. is to place the Dow 30 stocks in the list since these stocks do not
  199. change frequently.
  200.  
  201. PDL will collect quotes in the following order: all Quote Check requests
  202. for Stocks, Bonds and Funds; Quote Track requests if QRQ30 is specified;
  203. Market Close pages if the X symbols are specified.
  204.  
  205. * X symbols are only available on the registered versions of PDL.
  206.  
  207.  
  208. RUNNING PDL
  209. -----------------
  210.  
  211. PDL has a default quote list file named "PDL.IN".  If you choose to name
  212. it something else, you will need to tell PDL by running the PDLCONF
  213. program.  This will change the input file name in the PDL.CNF file and
  214. also in the PDLRUN.BAT file.  In addition, it stores the Prodigy quotes
  215. in a file called "PDL.OUT" unless you give the output file another name.
  216.  
  217. PDL is started by entering the command PDLRUN at the DOS prompt.
  218.  
  219. PDL is ALWAYS run from a batch file.  A typical batch file, such as
  220. PDLRUN.BAT which is built by the PDLCONF program follows:
  221.  
  222. echo off
  223. echo *********************************************************************
  224. echo *                 PDLRUN.BAT                  *
  225. echo *********************************************************************
  226. set TRY=0
  227. set PDLRUN=ON
  228. cd C:\BC\PDL31
  229. pdl PDL.IN PDL.OUT
  230. :newtag
  231. pdlmis PDL.IN PDL.OUT PDL.NEW
  232. if ERRORLEVEL 1 GOTO :more
  233. GOTO :endit
  234. :more
  235. GOTO :T%TRY%
  236. :T0
  237. goto :nogood
  238. :T1
  239. set TRY=0
  240. goto :tag
  241. :T2
  242. set TRY=1
  243. goto :tag
  244. :T3
  245. set TRY=2
  246. goto :tag
  247. :T4
  248. set TRY=3
  249. goto :tag
  250. :T5
  251. set TRY=4
  252. goto :tag
  253. :T6
  254. set TRY=5
  255. goto :tag
  256. :T7
  257. set TRY=6
  258. goto :tag
  259. :T8
  260. set TRY=7
  261. goto :tag
  262. :T9
  263. set TRY=8
  264. :tag
  265. pdl -a PDL.NEW PDL.OUT
  266. GOTO :newtag
  267. :nogood
  268. echo Retry count exhausted - PDL terminating
  269. :endit
  270. copy HISTORY.FIL+PDL.OUT HISTORY.FIL
  271. set PDLRUN=OFF
  272.  
  273. Most of this batch file is concerned with checking for missing quotes
  274. and restarting PDL if a failure occurrs.  There should be no need to
  275. edit this file other than by using the PDLCONF program.
  276.  
  277.  
  278.  
  279.                  PDL FILES
  280.                  ---------
  281.  
  282.  
  283. PDL INPUT AND OUTPUT FILES
  284. --------------------------
  285.  
  286. Suppose your quote list is in a file called DJ30.STK and you want to put
  287. the Prodigy quotes in a file called DJ30.LST.  Then you would start
  288. PDLCONF, go to the Change Startup Parameters screen to make the changes
  289. and then select the Update Parameter Files option to build the new
  290. PDLRUN.BAT and PDL.CNF files.
  291.  
  292. The default quote list file name is PDL.IN and the default output
  293. filename is PDL.OUT.  If you have no need to change these names, it
  294. might make things simpler to just use the defaults.
  295.  
  296.  
  297. THE PDL.CNF FILE
  298. -------------------
  299.  
  300. If you use PDLCONF to build the startup configuration and batch files
  301. you can ignore this section since this is taken care of automatically.
  302.  
  303. The PDL.CNF file contains many of the parameters that PDL needs to start
  304. and run correctly.  The following is the format of the file:
  305.  
  306. USERID = ABCD99            your Prodigy UserID
  307. PASSWD = BANANA            your Prodigy Password
  308. REG_CODE = UNREGISTERED        your PDL registration code
  309. COMM_PORT = 3F8            your modem port address
  310. LOGON = PDL               the type of logon requested
  311. NICKNAME = JOHN            your Prodigy Autologon Nickname
  312. P_DELAY = 400               delay after printing to a file
  313. D_DELAY = 400               context switching delay
  314. RETRIES = 0               number of attempts to restart Prodigy
  315. PRODIGY_PATH = C:\PRODIGY      the Prodigy drive and directory
  316. PDL_PATH = C:\PDL30           the PDL drive and directory
  317. INFILE = PDL.IN            the input file name
  318. OUTFILE = PDL.OUT           the output file name
  319. NEWFILE = PDL.NEW           file to hold missing quote list
  320. HISTORY_FILE = HISTORY.FIL     file to hold archived pdl.out files
  321.  
  322. The format should be followed as shown above using all upper case
  323. letters and spacing on either side of the "=".  The file is built
  324. automatically by the PDLCONF program.
  325.  
  326.  
  327. KEYBOARD COMMANDS
  328. ------------------------
  329.  
  330. PDL has four keyboard commands which are available for limited control
  331. and alteration of PDL functions.
  332.  
  333.    ALT-S   - Suspend keystroke input
  334.    ALT-R   - Resume 'suspended' keystroke input
  335.    ALT-B   - Begin keystroke input from the top (for MANUAL logon)
  336.    ALT-X   - Exit. Causes PDL to release all interrupt vectors
  337. *  CTL-BREAK Causes PDL to release all interrupt vectors and allow keyboard
  338.          data entry
  339.  
  340. Under normal conditions it will not be necessary to use these commands
  341. and they can be a little trickey to use.  As you become more familiar
  342. with the PDL and Prodigy sequences you may want to try them out.
  343.  
  344.  
  345. PDL INSTALL PROCEDURE
  346. -------------------------
  347.  
  348. PDL comes in a ZIP file named based on the version of the program.
  349. Suppose you have PDL31.ZIP (which is version 3.1) of the software.  This
  350. installation assumes you are placing PDL in your \PDL31 directory on
  351. drive 'C':
  352.  
  353.    1) Create the PDL directory using the DOS MD command and make that
  354.       the current directory.
  355.                  c:
  356.                  md c:\pdl31
  357.                  cd c:\pdl31
  358.  
  359.    2) Use PKUNZIP to extract the contents of PDL31.ZIP into your \PDL31
  360.       directory.
  361.  
  362.       You should have the following files:
  363.  
  364.      PDL.EXE      -  Main program which passes keystrokes to Prodigy and
  365.              places output in a file.
  366.      PDLKEY.COM   -  Program to translate your quote list to keystrokes.
  367.      PDLMIS.COM   -  Program to check for missing quotes.
  368.      PDLSCHED.COM -  The Vacation Scheduler program
  369.      PDLSCHED.CTL -  Control file for Vacation Scheduler
  370.      PDLCONF.EXE  -  The PDL configuration program.
  371.      PDLCONF.HLP  -  The help file for PDLCONF.
  372.      PDL.IN      -  A sample input file.
  373.      PDL.DOC      -  This document
  374.      REGISTER.DOC -  Registration form for PDL
  375.      PDLRUN.BXT   -  A template file used by PDLCONF to create
  376.              PDLRUN.BAT
  377.      READ.ME      -  Quick start & last minute changes
  378.  
  379.    3) Create a file called PDL.IN containing your Stock, Fund,
  380.       Bond and indeX symbols.
  381.  
  382.    4) Start the configuration program by entering PDLCONF at the DOS
  383.       prompt.  Follow the instructions in PDLCONF.  Don't forget to save
  384.       the files by selecting Update Parameter Files before ending
  385.       PDLCONF.
  386.  
  387.    5) Type PDLRUN to start PDL and Prodigy.
  388.  
  389.  
  390.  
  391. VACATION MODE
  392. -------------
  393.  
  394. Vacation Mode of operation provides a method of automating the startup
  395. of PDL on specific days or dates at a specific time.  There are two ways
  396. that this may be accomplished.    The first assumes that the computer will
  397. remain turned on for the duration of the unattended period.  The second
  398. assumes that power on/off control will be used to start the computer and
  399. that the autoexec.bat file will start PDLSCHED, the scheduler.     The
  400. scheduler is started by executing the PDLSCHED command from the PDL
  401. directory.
  402.  
  403. Method 1 - Power On
  404. The PDLSCHED.CTL file should contain the following:
  405.     INCLUDE:ALL
  406.     EXCLUDE:SAT
  407.     EXCLUDE:SUN
  408.     START:18:00
  409.     WAIT:
  410. This tells the scheduler to run PDL on every day except saturday and
  411. sunday, to start the run at 6PM and to re-enable the schedule for the
  412. next day and wait for the correct start time.
  413.  
  414. Method 2 - Power control
  415. This method assumes that you have a way to automatically turn on the
  416. power at the time you wish the scheduler to start.  You will also
  417. need to add statements to your AUTOEXEC.BAT file to change the
  418. directory to the PDL directory and execute the PDLSCHED command. The
  419. PDLSCHED.CTL file should contain the following:
  420.     INCLUDE:ALL
  421.     EXCLUDE:SAT
  422.     EXCLUDE:SUN
  423.     EXCLUDE:12/25/91
  424.     START:18:00
  425. This tells the scheduler to run PDL on every day except saturday and
  426. sunday, to start the run at 6PM and to return to DOS after the run
  427. completes.  It also contains an example of how to exclude a specific
  428. date, in this case December 25, 1991.
  429.  
  430. The PDLSCHED program provides the option of changing the name of the
  431. PDLSCHED.CTL file on the command line.    For example:
  432.     PDLSCHED NEW.CTL
  433. causes the scheduler to use a control file named NEW.CTL.
  434.  
  435.  
  436. The PDLSCHED.CTL file
  437. ---------------------
  438.  
  439. The format of the scheduler control file is as follows:
  440.     CONTROL:VALUE
  441. where control is the keyword INCLUDE, EXCLUDE, START or WAIT separated
  442. by a colon from the value.  Values for INCLUDE and EXCLUDE are ALL, SAT,
  443. SUN, MON, TUE, WED, THU, FRI or a date in the format mm/dd/yy.    Values
  444. for START include any valid time in the format HH:MM:SS expressed in 24
  445. hour format (e.g. 18:00:00 is 6PM).  The WAIT keyword has no values
  446. associated with it but requires the colon separator to delineate the
  447. keyword.
  448.  
  449.  
  450. TELEPHONE LINE PROBLEMS
  451. ------------------------
  452.  
  453. If you used PDLCONF to build the parameter files, most of the restart
  454. will be taken care of automatically.  If you selected the MANUAL logon
  455. option or built your own startup batch file the following information
  456. may be helpful.
  457.  
  458. Occasionally problems will arise that require PDL to do something other
  459. than what it had planned to do next.  When these problems occur, it
  460. will suspend the current operation using the ALT-S function discussed
  461. earlier and exit the program.  This will prevent the unused keystrokes
  462. from spewing out after Prodigy has already gone away.
  463.  
  464. A common problem is a "no answer timeout" which causes Prodigy to
  465. switch to the "Try Again" screen.  When this happens, PDL may not yet
  466. have control, depending on the type of logon process that you are
  467. using.  In Prodigy Autologon or PDL autologon modes, the quotes will
  468. be suspended and Prodigy will be terminated.  This allows a 'clean'
  469. restart from the batch file.  In manual mode, the quote list will be
  470. suspended and the 'Try Again' screen will be entered to allow you to
  471. manually reconnect.    After this, you can enter an ALT-B or ALT-R to
  472. resume.  This method may result in lost or duplicated quotes.
  473.  
  474. If the line drops during a session, PDL cannot tell exactly how far you
  475. have gotten in the quotes file nor can it tell how much data has been
  476. lost.  It simply suspends the quote requests and terminates.
  477.  
  478. All of the above recovery actions are based on PDL being able to
  479. determine when the modem is online and when it is offline.  To do this,
  480. PDL interrogates the CARRIER DETECT signal to make sure that Prodigy is
  481. still connected to the service.  Your modem must be configured with "CD
  482. follows Carrier" (HayesII - ATS21=032).  PDL will check this at startup
  483. and warn you if "CD is always on".
  484.  
  485.  
  486. DELAY CONTROL
  487. -------------
  488.  
  489. Some machines experience problems of dropping characters from the
  490. keystroke file after switching screens within Prodigy.    This causes the
  491. keystroke sequences to get out of sync and occasionally jump to a screen
  492. that you don't want.  There are two delay values that can be controlled
  493. from the through the PDLCONF program:
  494.         P_DELAY   controls the delay after printing; if not
  495.               specified the default is 400.
  496.               If this is inadequate, try increasing the number
  497.               in increments of 100.
  498.         D_DELAY   controls the delay after switching prodigy
  499.               screens. This is a self adjusting time value based
  500.               on machine speeds.  The default is 400.  If this
  501.               is inadequate, the number should be increased in
  502.               increments of 100 until quote requests run
  503.               normally.
  504.  
  505.  
  506. DISCLAIMER
  507. ---------------
  508.  
  509. The author has made every effort to ensure that PDL will operate in
  510. most common environments.  However, the techniques that are used are
  511. heavily dependent on ISRs (Interrupt Service Routines) and may not
  512. operate correctly when used with TSR programs that intercept keyboard
  513. or printer interrupts.  If you experience problems such as "keyboard
  514. lockup" or runaway quote files (quote requests appearing on the DOS
  515. command line), try removing the other TSRs and rerunning.
  516.  
  517. The author assumes NO responsibility for any damages, direct or
  518. consequential, which may result from the use of PDL (Prodigy DownLoad).
  519. The user must accept and agree to this disclaimer of warranty prior to
  520. using PDL.
  521.  
  522.  
  523.  
  524.  
  525.  
  526. IBM is a registered trademark of International Business Machines
  527. Corporation.
  528. Prodigy is a registered service mark and trademark of Prodigy Services
  529. Company
  530.  
  531. 
  532.